import { InfoService } from "../InfoService";
import { Service , Inject } from "typedi";
import { InfoDao } from "../../dao/InfoDao";

@Service()
export class InfoServiceImpl implements InfoService {
	
	@Inject()
	private infoDao: InfoDao;
	
	public async getCourseByObjectId(id: string): Promise<Array<Object>> {
		return await this.infoDao.getCourseByObjectIdDao(id);
	}
	
	public async getCourseVideoByObjectId(id: string): Promise<Array<Object>> {
		return await this.infoDao.getCourseVideoByObjectIdDao(id);
	}
	
	public async getCurrentPlayVideo(id: string): Promise<Array<Object>> {
		return await this.infoDao.getCurrentPlayVideoDao(id);
	}
}